#include<iostream>
using namespace std;

class A
{
public:
	int a;
};

class B : virtual public A
{
protected:
	int b;
};

class C : virtual public A
{
protected:
	int c;
};

class D : public B, public C
{
protected:
	int d;
};

class E : public D
{
protected:
	int d;
};
int main()
{
	D d;
	cout << d.a;
	E e;
	e.a = 0;
	cout << e.a;

	return 0;
}